
package com.hazelcast.internal.config;

import com.hazelcast.config.BTreeIndexConfig;
import com.hazelcast.config.MemoryTierConfig;
import com.hazelcast.memory.Capacity;

/**
 * A read-only counterpart of {@link BTreeIndexConfig} class.
 */
public class BTreeIndexConfigReadOnly extends BTreeIndexConfig {

    public BTreeIndexConfigReadOnly(BTreeIndexConfig other) {
        super(other);
    }

    @Override
    public BTreeIndexConfigReadOnly setMemoryTierConfig(MemoryTierConfig memoryTierConfig) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public BTreeIndexConfigReadOnly setPageSize(Capacity pageSize) {
        throw new UnsupportedOperationException("This config is read-only");
    }
}
